package com.test;

import java.util.Arrays;

import com.geek688.auxiliarytool.util.FileUtil;

public class WordDeal {

	public static void main(String[] args) {
		String[] old = new String[27];
		String[] newArr = new String[27];
		old[0]="pname";old[1]="totalFee";
		for(int i=3;i<28;i++) {
			old[i-1]="data_"+i;
		}
		System.out.println(Arrays.toString(old));
		String ne = "pname,totalFee,applicationFee,unitName,unitNature,unitLocation,unifiedSocialCreditCode,unitAddress,unitPostCode,personName,personBirthday,certificatesType,certificatesNumber,personUnit,firstDegree,personPosition,personEmail,personPhone,concatName,concatTelephone,concatPhone,concatEmail,salesRevenue,profitTax,developmentFunds,proportion,content";
		String[] split = ne.split(",");
		for(int i=1;i<28;i++) {
			newArr[i-1]="${detail."+split[i-1]+"}";
		}
//		newArr[25]="";newArr[26]="";
		System.out.println(Arrays.toString(newArr));
		String fileUrl = "C:\\Users\\hanjiefei\\Desktop\\muban.html";
		for(int i=0;i<27;i++) {
			System.out.println(old[i]+"  "+newArr[i]);
		}
		
		FileUtil.replaceFileText(fileUrl, old, newArr);
	}
}
